package com.xxg.renrensearch.dao;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

/**
 * renren_shop_shop
 *
 * @author
 */
@Data
@Document(indexName = "shop")
public class RenrenShopShop implements Serializable {
    @Id
    private Integer id;

    private Byte type;

    private Integer parentId;

    private Integer w7Uniacid;

    private Integer userId;

    @Field(type = FieldType.Text, analyzer = "ik_max_word")
    private String name;

    private String logo;

    private Byte status;

    private Boolean isDeleted;

    private Date createTime;

    private Date expireTime;

    private Date deleteTime;

    /**
     * 10-审核通过，1-待审核，11-拒绝
     */
    private Byte auditStatus;

    private Integer planId;

    private Byte isTrial;

    private static final long serialVersionUID = 1L;

    /**
     * 额外字段，所在城市
     */
    @Field(type = FieldType.Text)
    private String cityText;
    /**
     * 额外字段，城市代码
     */
    private Integer cityCode;
}